const operationLogModel = require("../models/operationLogModel.js")

// 操作日志类
class OperationLog {
  // 添加操作日志
  add(admin_id, admin_name, operation_type, operation_desc) {
    return operationLogModel.add(admin_id, admin_name, operation_type, operation_desc)
  }

  // 获取操作日志列表（支持按用户ID过滤）
  items(page_num, page_size, admin_id = null) {
    return operationLogModel.items(page_num, page_size, admin_id)
  }

  // 删除操作日志
  remove(id) {
    return operationLogModel.remove(id)
  }
}

// 暴露操作日志类
module.exports = OperationLog;

